﻿<UserControl x:Class="PresentationAid.Control.KinectElevationControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" 
             d:DesignHeight="120" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Label Grid.Row="0" Grid.Column="0" FontSize="18" HorizontalAlignment="Right">27°</Label>
        <Image Name="Tilt" Grid.Row="1" Grid.Column="0" Width="50" Source="/PresentationAid;component/Resources/Images/ElevationControl/tilt.png" Margin="5"/>
        <Label Grid.Row="2" Grid.Column="0" FontSize="18"  HorizontalAlignment="Right">-27°</Label>

        <Image Name="SliderTrack" Grid.Row="0" Grid.RowSpan="3" Grid.Column="1" Source="/PresentationAid;component/Resources/Images/ElevationControl/slider-track.png" Margin="5 5 20 5"/>
        <Image Name="Slider" Grid.Row="0" Grid.RowSpan="3" Grid.Column="1" Source="/PresentationAid;component/Resources/Images/ElevationControl/slider.png" Width="40" VerticalAlignment="Center" HorizontalAlignment="Right" RenderTransformOrigin="-1.3,0.5" MouseDown="SliderMouseDown" MouseUp="SliderMouseUp" MouseMove="SliderMouseMove">
            <Image.RenderTransform>
                <RotateTransform x:Name="Transform" />
            </Image.RenderTransform>
        </Image>

        <TextBlock x:Name="ElevationLabel" Grid.Row="0" Grid.RowSpan="3" Grid.Column="2" Margin="10,0,0,0" Width="50" VerticalAlignment="Center" FontSize="18" Text="0°" />
    </Grid>
</UserControl>
